package edu.arizona.sista.learn.activity.model.args;

import java.util.Arrays;

import edu.arizona.sista.learn.activity.model.Bindings;

public class PredLocation extends PredArg {

	public PredLocation(String variableName, String value, String... cannotEqual) {
		super(variableName, value, cannotEqual);
		_type = "location";
	}
	
	public PredLocation(String extendedVariableName, String value) {
		super(extendedVariableName, value);
		_type = "location";
	}
	
	@Override
	public Bindings getValidBinding(final PredArg testBinding, Bindings currentBindings){
		return testBinding instanceof PredLocation ? super.getValidBinding(testBinding, currentBindings) : null;
	}
	
	public PredLocation copy(){
		return new PredLocation(_variableName, _boundValue, Arrays.copyOf(_cannotEqual,_cannotEqual.length));
	}
	
}
